<?php
/*cofiguration globale des graphes. */
define("COULEUR_GRAPH", 'yellow');
define("COULEUR_PLOT", 'red');
define("COULEUR_FILL", 1); // nombre ..
define("RANG_SELECTOR", "0"); // nombre ..
define("VALUE_PLOT_1", 0); // nombre ..
define("WIDTH_PLOT", 2); // nombre ..
define("STEP", "true");
// define("TYPE", 'area');
define("DATA", 'data');
define("DECIMAL", 1);
define("NAV_ENABLED", "true");
define("NAV_COLOR", 'green');
define("CRED_ENABLED", "true");
define("CRED_HREF", "mailto:D.E.S.I@themisbanque.com");
define("CRED_TEXT", "CONTACTEZ DESI");
define("PNG", "Exporter en PNG");
define("JPEG", "Exporter en JPEG");
define("PDF", "Exporter en PDF");
define("SVG", "Exporter en SVG");
define("SCROLLBAR", "false");
define("INPUT_ENABLED", "false");
/*
Pour plus des informations ou si vous voulez ajouter plus des options, voir le lien suivant:
http://www.highcharts.com/stock/ref/

*/

function plotLines($value, $color, $width_plot, $label_plot){
	$plot="";
	$plot.="value : $value,
			   color : '$color',
			   width : $width_plot,
			   label : {
						text : '$label_plot'
					}";
	return $plot;
}

function echoRangSelector(){
	$rang="";
	$rang="
		rangeSelector: {
			buttons: [{ 
				type: 'month',
				count: 1,
				text: '1m'
			}, { 
				type: 'month',
				count: 3,
				text: '3m'
			}, { 
				type: 'month',
				count: 6,
				text: '6m'
			}, { 
				type: 'ytd',
				text: 'Jan'
			}, { 
				type: 'year',
				count: 1,
				text: '1an'
			}, { 
				type: 'all',
				text: 'all'
			}],
			inputEnabled : ".INPUT_ENABLED.",
			selected : 1
		},";
	return $rang;
}
?>
